{% extends '::base.html.twig' %} 
{% block module_name %}Ivas{% endblock %}
{% block title %}Ivas :: Listar{% endblock %}
{% block customScripts %}
<script src="{{ asset('bundles/EndorBundle/js/jquery.dataTables.min.js') }}"></script>
{% endblock %}
{% block body %}
<h2>Ivas :: Listar</h2>
<div class="widget_inside">
    <table class="records_list regular">
        <thead>
            <tr>                    <!--<th>Id</th>-->                    <th>Nombre</th>                    <th>Procentaje</th>                    <th style="width: 100px;">Acciones</th>
                </tr>
            </thead>
            <tbody>
    {% for entity in entities %}
                    <tr>                        <!--<td><a href="{{ path('ivas_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>-->
                        <td>{{ entity.nombre }}</td>
                        <td>{{ entity.procentaje }}</td>
                        <td>    
    <a href="{{ path('ivas_show', { 'id': entity.id }) }}" class="button small">Ver</a>    
    <a href="{{ path('ivas_edit', { 'id': entity.id }) }}" class="button small">Editar</a>

                            </td>
                        </tr>
    {% endfor %}
                    </tbody>
                </table>
                        <div class="margin_top_15 right">
                    <a href="{{ path('ivas_new') }}" class="blue button">Agregar</a>
                </div>
                    </div>
<script>
$(document).ready(function(){
    $('.regular').dataTable({
        "sPaginationType": "full_numbers",
        "bJQueryUI": true
    });
});
</script>
{% endblock %}